﻿<div class="wrapper border-bottom white-bg page-heading">
	<div class="col-lg-pull-12">
		<ol class="breadcrumb">
			<li class="active">供应商</li>
		</ol>
	</div>
</div>
<div ng-controller="manageController">
    <div class="row ui-box">
        <div class="col-md-8">
            <a class="btn btn-primary btn-sm" ui-sref="app.manage.manage_detail({action:'add'})"><i class="fa fa-plus"></i> 添加</a>
        </div>
        <div class="col-md-4">
            <div class="input-group">
                <input type="text" class="form-control input-sm" ng-model="nick" placeholder="名称">
                <span class="input-group-btn">
                    <button class="btn btn-primary btn-sm" type="button" ng-click="getmarchant()"><i class="fa fa-search"></i> 查询</button>
                </span>
            </div>
        </div>
    </div>
    <table class="table table-hover m-t-md">
        <thead>
            <tr style="background-color: #f7f7f9;">
                <th>名称</th>
                <th>账号</th>
                <th>登录时间</th>
                <th width="130">操作</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="item in model.rows">
                <td>{{item.name}}</td>
                <td>{{item.mobile}}</td>
                <td>{{item.login_time}}</td>
                <td>
                    <a class="btn btn-primary btn-xs" ui-sref="app.manage.merchant_detail({action:'edit',id:{{item.id}}})"><i class="fa fa-cog"></i> 编辑</a>
                    <!--<button class="btn btn-primary btn-xs" ng-click="remove(item)"><i class="fa fa-trash"></i> 删除</button>-->
                </td>
            </tr>
        </tbody>
    </table>
    <div class="row">
        <div class="col-md-12">
            <uib-pagination total-items="model.total_result" items-per-page="model.size" ng-model="model.page" num-pages="model.total_pages"
                            ng-change="search_page(model.page)" class="pagination-sm" boundary-links="true" boundary-link-numbers="true" max-size="20"
                            previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;"></uib-pagination>
            <span class="pull-right" style="margin: 30px 0px 20px 0px">共{{model.total_result}} 当前：{{model.page}}/{{model.total_pages}}</span>
        </div>
    </div>
</div>